package com.xhai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhai.domain.entity.SysPerm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author xhai
 * @since 2025-05-24
 */
@Mapper
public interface SysPermMapper extends BaseMapper<SysPerm> {

    /**
     * 根据角色获取权限
     *
     * @param roleIds
     * @return
     */
    List<SysPerm> selectPermByRoleIds(@Param("roleIds") Set<Long> roleIds);
}
